import { openGetJSON } from '../service/request'
import Taro from '@tarojs/taro'
/**
 * 微信签名
 * @param {url:分享路劲} params
 */
export const getSign = async params => {
  const { data } = await openGetJSON({ ...params, module:'WechatService.getSign'});
  if (data && data.state === '000') {
    return data
  } else {
    Taro.showToast({
      title: data.msg,
      icon:'none'
    })
    return {}
  }
}
